$(function(){
	$(window).bind("scroll resize",function(){
		var scrolltop=jQuery(window).scrollTop();
		scrolltop>=100?($("#dw").css("display","block")):($("#dw").css("display","none"));
	});
	$("#button2").click(function(){
		localSurvey.submit();
	});
	var obj = window.dialogArguments;
	if(obj=='aa'){
		$('#button2,.submit,#next').css('display','none');
		$('input,select').attr('disabled','disabled');
		$('#dw').css('margin-bottom','8%');
	}
	$('#next').on('click',function(){
		window.open('/gx_survey/com.future.servlet/NextAreaServlet?code='+$('#hiddenname').val()+'&flag=aa');
	});
});
